package com.gitee.kamismile.stone.basic.data.domain.sysRes.repository.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.util.Date;
import java.util.Objects;

@Table(name = "sys_resources")
public class SysResources {
    @Id
    private Integer nResourcesId;
    private String sName;
    private String sType;
    private String sState;
    private Integer nOrder;
    private Integer nLayer;
    private String sIcon;
    private String sGroup;
    private String sPageJs;
    private String sUrl;
    private String sCode;
    private String sParentType;
    private Integer nParentId;
    private String sExtend;
    private String sIslast;
    private String sPath;
    private Integer nTenantId;
    private Integer nCreateBy;
    private Integer nUpdateBy;
    private Date dCreateTime;
    private Date dUpdateTime;

    public String getsPath() {
        return sPath;
    }

    public void setsPath(String sPath) {
        this.sPath = sPath;
    }

    public Integer getnResourcesId() {
        return nResourcesId;
    }

    public void setnResourcesId(Integer nResourcesId) {
        this.nResourcesId = nResourcesId;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public String getsType() {
        return sType;
    }

    public void setsType(String sType) {
        this.sType = sType;
    }

    public String getsState() {
        return sState;
    }

    public void setsState(String sState) {
        this.sState = sState;
    }

    public Integer getnOrder() {
        return nOrder;
    }

    public void setnOrder(Integer nOrder) {
        this.nOrder = nOrder;
    }

    public Integer getnLayer() {
        return nLayer;
    }

    public void setnLayer(Integer nLayer) {
        this.nLayer = nLayer;
    }

    public String getsIcon() {
        return sIcon;
    }

    public void setsIcon(String sIcon) {
        this.sIcon = sIcon;
    }

    public String getsGroup() {
        return sGroup;
    }

    public void setsGroup(String sGroup) {
        this.sGroup = sGroup;
    }

    public String getsPageJs() {
        return sPageJs;
    }

    public void setsPageJs(String sPageJs) {
        this.sPageJs = sPageJs;
    }

    public String getsUrl() {
        return sUrl;
    }

    public void setsUrl(String sUrl) {
        this.sUrl = sUrl;
    }

    public String getsCode() {
        return sCode;
    }

    public void setsCode(String sCode) {
        this.sCode = sCode;
    }

    public String getsParentType() {
        return sParentType;
    }

    public void setsParentType(String sParentType) {
        this.sParentType = sParentType;
    }

    public Integer getnParentId() {
        return nParentId;
    }

    public void setnParentId(Integer nParentId) {
        this.nParentId = nParentId;
    }

    public String getsExtend() {
        return sExtend;
    }

    public void setsExtend(String sExtend) {
        this.sExtend = sExtend;
    }

    public String getsIslast() {
        return sIslast;
    }

    public void setsIslast(String sIslast) {
        this.sIslast = sIslast;
    }

    public Integer getnTenantId() {
        return nTenantId;
    }

    public void setnTenantId(Integer nTenantId) {
        this.nTenantId = nTenantId;
    }

    public Integer getnCreateBy() {
        return nCreateBy;
    }

    public void setnCreateBy(Integer nCreateBy) {
        this.nCreateBy = nCreateBy;
    }

    public Integer getnUpdateBy() {
        return nUpdateBy;
    }

    public void setnUpdateBy(Integer nUpdateBy) {
        this.nUpdateBy = nUpdateBy;
    }

    public Date getdCreateTime() {
        return dCreateTime;
    }

    public void setdCreateTime(Date dCreateTime) {
        this.dCreateTime = dCreateTime;
    }

    public Date getdUpdateTime() {
        return dUpdateTime;
    }

    public void setdUpdateTime(Date dUpdateTime) {
        this.dUpdateTime = dUpdateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysResources that = (SysResources) o;
        return Objects.equals(nResourcesId, that.nResourcesId) && Objects.equals(sName, that.sName) && Objects.equals(sType, that.sType) && Objects.equals(sState, that.sState) && Objects.equals(nOrder, that.nOrder) && Objects.equals(nLayer, that.nLayer) && Objects.equals(sIcon, that.sIcon) && Objects.equals(sGroup, that.sGroup) && Objects.equals(sPageJs, that.sPageJs) && Objects.equals(sUrl, that.sUrl) && Objects.equals(sCode, that.sCode) && Objects.equals(sParentType, that.sParentType) && Objects.equals(nParentId, that.nParentId) && Objects.equals(sExtend, that.sExtend) && Objects.equals(sIslast, that.sIslast) && Objects.equals(nTenantId, that.nTenantId) && Objects.equals(nCreateBy, that.nCreateBy) && Objects.equals(nUpdateBy, that.nUpdateBy) && Objects.equals(dCreateTime, that.dCreateTime) && Objects.equals(dUpdateTime, that.dUpdateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(nResourcesId, sName, sType, sState, nOrder, nLayer, sIcon, sGroup, sPageJs, sUrl, sCode, sParentType, nParentId, sExtend, sIslast, nTenantId, nCreateBy, nUpdateBy, dCreateTime, dUpdateTime);
    }
}
